#ifndef HDCTITLEWIDGET_H
#define HDCTITLEWIDGET_H

#include <QtWidgets>

class HDCTitleWidget : public QWidget
{
    Q_OBJECT
public:
    HDCTitleWidget(QWidget *parent = 0);
    ~HDCTitleWidget();

protected:
    void                      paintEvent(QPaintEvent *event);
    void                      mousePressEvent(QMouseEvent *event);
    void                      mouseMoveEvent(QMouseEvent *event);
    void                      mouseReleaseEvent(QMouseEvent *event);

private:
    void                      initUI();

private:
    QHBoxLayout               *m_phblMain;
    QHBoxLayout               *m_phblButtonArea;
    QVBoxLayout               *m_pvblButtonArea;

    QPushButton               *m_ppbMin;
    QPushButton               *m_ppbClose;
    QLabel                    *m_plblLogo;

    bool                      m_bPressed;
    QPoint                    m_posPressed;

signals:
    void                      sigMinButtonClicked();
    void                      sigCloseButtonclicked();
    void                      sigMoveDistance(int dx,int dy);

};

#endif
